package com.itheima.manager.heroManager;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Guanyu g=new Guanyu("关羽",650,300,87,5);
        ZhangFei z=new ZhangFei("张飞",700,300,80,5);


        while (true){
            System.out.println("选择您要作战的英雄");
            System.out.println("1关羽  2.张飞 3.退出");
            int choice = sc.nextInt();
            switch (choice) {
                case 1:
                    g.show();
                    System.out.println("请输入要使用的技能：1.十字斩 2.落雨斩 3.剑刃风暴 4.退出");
                    g.start();
                    break;
                case 2:
                    z.show();
                    System.out.println("请输入要使用的技能：1.咆哮一击 2.丈八蛇矛 3.天神下凡 4.退出");
                    z.start();
                    break;
                case 3:
                    System.out.println("江湖之中留下了你的传说");
                    System.exit(0);
                default:
                    System.out.println("您的输入有误");
                    break;
            }
        }

    }
}
